package com.dy.drp.mapper;

import com.dy.drp.dto.ClientCollect;
import com.dy.drp.entity.Saleinfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.drp.util.PageUtil;
import com.dy.drp.util.SelectUtil;
import com.dy.drp.vo.SaleinfoVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dy
 * @since 2022-04-02
 */
@Mapper
public interface SaleinfoMapper extends BaseMapper<Saleinfo> {
    Integer insertOneSaleInfo(SaleinfoVo saleinfoVo);

    List<SaleinfoVo> selectOnePageSaleinfo(PageUtil<SaleinfoVo> pageUtil);

    List<SaleinfoVo> selectOnePageSaleinfoByinfo(SelectUtil selectUtil);

    SaleinfoVo selectOneSaleinfoById(Long saleId);

    List<ClientCollect> clientCollect(PageUtil<ClientCollect> pageUtil);

    List<Integer> clientCollectCount();

    List<ClientCollect> clientCollectByInfo(SelectUtil selectUtil);

    List<Integer> clientCollectCountByInfo(SelectUtil selectUtil);
}
